<?php
namespace app\admin\controller;

use app\model\SystemUser;
use support\Request;
use think\facade\Db;

class User extends AdminBase
{
    /**
     * 获取系统用户基本信息
     *
     * @param Request $request
     * @return void
     */
    public function info(Request $request)
    {
		$data = [];
	    $menu = file_get_contents(public_path().'/json/menu.json');
	    $data['info'] = $this->user;
	    $data['roles'] = ['admin'];
	    $data['authBtnList'] = ['btn.add', 'btn.del', 'btn.edit', 'btn.link'];
	    $data['menus'] = json_decode($menu,true);
        return success($data);
    }

}
